package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.PlayerCostLogMapper;
import com.ruoyi.system.domain.PlayerCostLog;
import com.ruoyi.system.service.IPlayerCostLogService;

/**
 * 玩家抽卡消耗Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-19
 */
@Service
public class PlayerCostLogServiceImpl implements IPlayerCostLogService 
{
    @Autowired
    private PlayerCostLogMapper playerCostLogMapper;

    /**
     * 查询玩家抽卡消耗
     * 
     * @param id 玩家抽卡消耗主键
     * @return 玩家抽卡消耗
     */
    @Override
    public PlayerCostLog selectPlayerCostLogById(Long id)
    {
        return playerCostLogMapper.selectPlayerCostLogById(id);
    }

    /**
     * 查询玩家抽卡消耗列表
     * 
     * @param playerCostLog 玩家抽卡消耗
     * @return 玩家抽卡消耗
     */
    @Override
    public List<PlayerCostLog> selectPlayerCostLogList(PlayerCostLog playerCostLog)
    {
        return playerCostLogMapper.selectPlayerCostLogList(playerCostLog);
    }

    /**
     * 新增玩家抽卡消耗
     * 
     * @param playerCostLog 玩家抽卡消耗
     * @return 结果
     */
    @Override
    public int insertPlayerCostLog(PlayerCostLog playerCostLog)
    {
        return playerCostLogMapper.insertPlayerCostLog(playerCostLog);
    }

    /**
     * 修改玩家抽卡消耗
     * 
     * @param playerCostLog 玩家抽卡消耗
     * @return 结果
     */
    @Override
    public int updatePlayerCostLog(PlayerCostLog playerCostLog)
    {
        return playerCostLogMapper.updatePlayerCostLog(playerCostLog);
    }

    /**
     * 批量删除玩家抽卡消耗
     * 
     * @param ids 需要删除的玩家抽卡消耗主键
     * @return 结果
     */
    @Override
    public int deletePlayerCostLogByIds(Long[] ids)
    {
        return playerCostLogMapper.deletePlayerCostLogByIds(ids);
    }

    /**
     * 删除玩家抽卡消耗信息
     * 
     * @param id 玩家抽卡消耗主键
     * @return 结果
     */
    @Override
    public int deletePlayerCostLogById(Long id)
    {
        return playerCostLogMapper.deletePlayerCostLogById(id);
    }
}
